# _*_ coding : utf-8 _*_
# @Time : 2023/8/26 23:34
# @Author : 寻梦
# @File : 17_解析_jsonpath
# @Project : code
'''
案例链接：https://blog.csdn.net/luxideyao/article/details/77802389
'''
import json

import jsonpath

obj=json.load(open('../01_urllib的使用/data/book_store.json', 'r', encoding="utf8"))

# 获取所有书名
book_names=jsonpath.jsonpath(obj,'$.store.book[*].author')
print(book_names)
